<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>平台日志查询</title>
    <%@ include file="../../common/meta.jsp" %>
    <link href="${ctx}/css/page/common-list.css?t=${now}" rel="stylesheet">
    <link href="${ctx}/css/page/common-search.css?t=${now}" rel="stylesheet">
    <style>
    </style>
</head>
<script>
    <%--var checkTypeMap = '${checkTypeMap}';--%>
</script>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="tabs-container">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><i class="fa fa-search"></i> 筛选查询</h5>
                    </div>
                    <div class="ibox-content ibox-content-search">
                        <form class="form-horizontal m-t" id="searchForm" novalidate="novalidate">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">操作内容：</label>
                                <div class="col-sm-2">
                                    <input type="text" name="content" id="content" class="form-control"  placeholder="输入操作内容" maxlength="128">
                                </div>
                                <label class="col-sm-1 control-label">类名：</label>
                                <div class="col-sm-2">
                                    <input type="text" name="className" id="className" class="form-control"  placeholder="输入类名" maxlength="128">
                                </div>
                                <label class="col-sm-1 control-label">方法名：</label>
                                <div class="col-sm-2">
                                    <input type="text" name="methodName" id="methodName" class="form-control"  placeholder="输入方法名" maxlength="50">
                                </div>
                                <div class="ibox-tools ibox-tools-search">
                                    <button type="button" class="btn btn-primary btn-outline" onclick="doRefresh()">查询</button>
                                    <button type="reset" class="btn btn-primary btn-outline">重置</button>
                                    <button type="button" class="btn btn-primary btn-outline" onclick="openSearchTools();"><i class="fa fa-caret-down"></i></button>
                                </div>
                            </div>
                            <div class="search-tools">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">请求地址：</label>
                                    <div class="col-sm-2">
                                        <input type="text" name="url" id="url" class="form-control"  placeholder="输入请求地址" maxlength="256">
                                    </div>
                                    <label class="col-sm-1 control-label">IP地址：</label>
                                    <div class="col-sm-2">
                                        <input type="text" name="clientIp" id="clientIp" class="form-control"  placeholder="输入IP地址" maxlength="32">
                                    </div>
                                    <label class="col-sm-1 control-label">操作人员：</label>
                                    <div class="col-sm-2">
                                        <input type="text" name="operator" id="operator" class="form-control"  placeholder="输入操作员" maxlength="32">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label">操作时间：</label>
                                    <div class="col-sm-5">
                                        <input placeholder="操作时间" class="form-control layer-date" value="${yesterday} - ${today}" id="gmtCreateStr" name="gmtCreateStr">
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5><i class="fa fa-table"></i> 日志信息</h5>
                        <div class="ibox-tools col-sm-offset-2">
                            <button class="btn btn-primary btn-outline" onclick="openInfoPage()">查看</button>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <table class='table table-striped table-hover'
                               id="dataTable"  data-height="400"
                               data-toggle="table"
                               <%--data-url="${ctx}/pfLog/pageFindPfLogData?t=${now}"--%>
                               data-pagination="true"
                               data-side-pagination="server"
                               data-striped="true"
                               data-response-handler="handleServerResult"
                               data-query-params-type=""
                               data-query-params="getParams"
                               data-page-size="${defaultPageSize}"
                               data-page-list="${pageList}">
                            <thead>
                            <tr>
                                <th data-field="id" data-visible="false">主键id</th>
                                <th data-field="hosCode" data-visible="false">hosCode</th>
                                <th data-field="content" data-align="center" data-width="120px">操作内容</th>
                                <th data-field="className" data-align="center" data-width="160px">类名</th>
                                <th data-field="methodName" data-align="center" data-width="150px">方法名</th>
                                <th data-field="url" data-align="center" data-width="180px">请求地址</th>
                                <th data-field="clientIp" data-align="center" data-width="90px">ip地址</th>
                                <th data-field="gmtCreate" data-align="center" data-width="140px">创建时间</th>
                                <th data-field="elapsedTime" data-align="center" data-width="80px">执行毫秒</th>
                                <th data-field="operator" data-align="center" data-width="100px">操作人员</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">${companyName}</div>
            </div>
        </div>
    </div>
</div>

<script src="${ctx}/js/sys/log/pfLogMgr.js?t=${now}"></script>
</body>
</html>
